﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLab
{
    public struct Weather
    {
        public Int32 temperature;
        public DateTime time;
        public Int16 windAzimut;
        public Weather(Int32 temperature)
        {
            Random seed = new Random();
            this.temperature = temperature;
            this.time = DateTime.Now;
            this.windAzimut = (Int16)seed.Next(0,360);
        }
        public Weather(Int32 temperature, DateTime time)
            :this(temperature)
            {
                this.time=time;
            }
    }

}
